//package com.wzy.service.base.cors;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.CorsRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
//
///**
// * 2 * @Author: wuzhengyu
// * 3 * @Date: 2021/3/15 20:33
// * 4
// */
//@Configuration
//public class CorsConfig extends WebMvcConfigurationSupport {
//    @Override
//    protected void addCorsMappings(CorsRegistry registry) {
//        registry.addMapping("/**")
//                .allowedOriginPatterns("*")
//                .allowedMethods("POST", "GET", "PUT", "DELETE")
//                .allowCredentials(true)
//                .allowedHeaders("*")
//                .maxAge(3600)
//                .allowedHeaders(
//                        "Access-Control-Allow-Headers",
//                        "access-control-allow-origin, authority, content-type, version-info, X-Requested-With");
//    }
//}